#include "sComponentEdit.h"
#include "sCIEdit.h"
#include "sGUI.h"

namespace sgui
{
namespace res
{

const std::wstring sComponentEdit::COMPONENT_NAME = L"EDIT";

inst::sComponentInstance* sComponentEdit::getInstance(sGUI& gui, const res::sComponentObject& object, inst::sComponentInstance* parent)
{
	return new inst::sComponentInstanceEdit(gui, object, parent);
}
    
void sComponentEdit::fillRequredRects()
{
    registerRequiredComponentRect(sComponentRect::COMPONENT_RECT_EDITABLE_TEXT);
}
    
const std::wstring sComponentEdit::getClass() const
{
	return COMPONENT_NAME;
}

sComponentEdit::sComponentEdit(sGUI& gui, const std::wstring& name) :
	sComponentLabel(gui, name)
{
	//
}

sComponentEdit::~sComponentEdit()
{
	//
}

};
};